import sqlite3

conn = sqlite3.connect('niit.sqlite')
cur = conn.cursor()
sql_update = """
        update student set age = ? where stu_id = ?
"""
cur.execute(sql_update, (66, 10002))

conn.commit()
conn.close()
print('更新成功。。。')
